export default {
    name: 'Mymailbox',
    components: {

    },
    data() {
        return {
            currentTab: '/notnotified',
            showPage: '/notnotified',
            tabList: [
                {
                    action: '/notnotified',
                    name: '未通知'
                },
                {
                    action: '/notified',
                    name: '已通知'
                }
            ]
        }
    },
    computed: {

    },
    watch: {
        currentTab(newVal, oldVal) {
            this.$router.push({
                path: newVal
            });
        },
        $route: {
            handler(val, oldVal) {
                if (val.path == '/mymailbox') {
                    this.routeAgain();
                }
            }
        }
    },
    created() {
        this.routeAgain();
        this.$router.push({
            path: this.showPage,
        });
    },
    mounted() {

    },
    methods: {
        routeAgain() {
            this.$router.push({
                path: '/Notnotified'
            })
        }
    },
}